{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>基本模版</title>
    {% load static %}
    <link rel="stylesheet" type="text/css" href="{% static 'base.css' %}">
</head>
<body>
{% block top %}
    {# 头部添加背景图片#}
    <div style="text-align: right;height: 100px;width: 100%;background-image:url({% static '/backimage.jpg' %})">
        {# 添加背景色#}
        {#    <div style="text-align: right;height: 100px;width:100%;background: lightblue">#}
        {% if user.is_authenticated %}
            <div>
                欢迎您：<em>{{ user.username }}</em>
                <span>|</span>
                <a href="{% url 'auth_app:logout' %} ">退出</a>
                <span>|</span>
                <a href="{% url 'auth_app:register' %}">注册</a>
                <span>|</span>
                <a href="{% url 'auth_app:info' %} ">用户中心</a>
                <span>|</span>
                <a href="{% url 'goods:index' %} ">首页</a>
                <span>|</span>
                <a href="{% url 'goods:carts' %} ">购物车</a>
                <span>|</span>
                <a href="{% url 'goods:myorder' %} ">我的订单</a>
            </div>
        {% endif %}
    </div>
{% endblock top %}
{% block main %}
{% endblock main %}
{% block footer %}
{% endblock %}
{% block script %}
{% endblock %}
</body>
</html>